/**
 * 获取当前操作用户信息
 */
function ajaxGetUserByRegister() {
    var url = "/Lvscore_User_M/register/ajaxGetUserByRegister";
    $.post(url, {}, function (data) {
        /*id 用户id;
         email 用户邮箱;
         mobile 用户手机号;
         name 用户昵称;
         balance 用户余额;
         image 用户头像*/
        var cookie = new sweetCookie();
        var rtk=cookie.getCookie("rtk");
        if(data.rtk==rtk){
            $(".tel").html(data.mobile);
            $(".userId").html(data.id);
            $(".nickname").html(data.name);
            $(".email").html(data.email);
        }
    })
}
$(function(){
    if (window.history && window.history.pushState) {
        $(window).on('popstate', function () {
            window.history.pushState('forward', null, '#');
            window.history.forward(1);
        });
    }
    window.history.pushState('forward', null, '#'); //在IE中必须得有这两行
    window.history.forward(1);
    getUrl("register/ADdetailInfm");
    var cookie=new sweetCookie();
    cookie.setCookie("r_user","",-1);
    ajaxGetUserByRegister();
});